//
//  PywSetRoleInfoManager.m
//  PywSdk
//
//  Created by Ampaw on 2017/7/10.
//  Copyright © 2017年 Jade. All rights reserved.
//

#import "PywSetRoleInfoManager.h"
#import "PywPlatformMain.h"
#import "PywSetRoleInfoApi.h"

@interface PywSetRoleInfoManager ()
@property (nonatomic, strong) PywSetRoleInfoApi *roleInfoApi;
@end

@implementation PywSetRoleInfoManager

+ (PywSetRoleInfoManager *)manager
{
    static id manager = nil;
    static dispatch_once_t onceToken;
    dispatch_once(&onceToken, ^{
        manager = [[PywSetRoleInfoManager alloc] init];
    });
    return manager;
}

// 请求上传游戏角色
- (void)uploadRoleInfo:(NSDictionary *)roleInfo
{
    [self.roleInfoApi requestWithSetRoleInfo:roleInfo success:^(NSString *status, id anyObjct) {
        
    } fail:^(NSError *error) {
        
    }];
}

#pragma mark - Setter & Getter
- (PywSetRoleInfoApi *)roleInfoApi
{
    if (!_roleInfoApi) {
        _roleInfoApi = [PywSetRoleInfoApi manager];
    }
    return _roleInfoApi;
}


@end
